package com.job51.hro.exlog.config;

import com.job51.hro.exlog.box.WebPostJsonFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author pengfei.ma
 * @create 2023/3/7
 * @since 1.0.0
 */
@Configuration
public class FilterRegistration {
    @Bean
    public FilterRegistrationBean<WebPostJsonFilter> webPostJsonFilter() {
        FilterRegistrationBean<WebPostJsonFilter> registration = new FilterRegistrationBean<>(new WebPostJsonFilter());
        registration.addUrlPatterns("/*");
        return registration;
    }
}
